<?php
$tdatatbl_hinh_anh_trung_tam=array();
	$tdatatbl_hinh_anh_trung_tam[".NumberOfChars"]=80; 
	$tdatatbl_hinh_anh_trung_tam[".ShortName"]="tbl_hinh_anh_trung_tam";
	$tdatatbl_hinh_anh_trung_tam[".OwnerID"]="";
	$tdatatbl_hinh_anh_trung_tam[".OriginalTable"]="tbl_hinh_anh_trung_tam";


	
//	field labels
$fieldLabelstbl_hinh_anh_trung_tam = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_hinh_anh_trung_tam["English"]=array();
	$fieldToolTipstbl_hinh_anh_trung_tam["English"]=array();
	$fieldLabelstbl_hinh_anh_trung_tam["English"]["id"] = "Id";
	$fieldToolTipstbl_hinh_anh_trung_tam["English"]["id"] = "";
	$fieldLabelstbl_hinh_anh_trung_tam["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_hinh_anh_trung_tam["English"]["hinh_anh"] = "";
	$fieldLabelstbl_hinh_anh_trung_tam["English"]["noi_dung"] = "Noi Dung";
	$fieldToolTipstbl_hinh_anh_trung_tam["English"]["noi_dung"] = "";
	if (count($fieldToolTipstbl_hinh_anh_trung_tam["English"])){
		$tdatatbl_hinh_anh_trung_tam[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_hinh_anh_trung_tam[".NCSearch"]=true;

	

$tdatatbl_hinh_anh_trung_tam[".shortTableName"] = "tbl_hinh_anh_trung_tam";
$tdatatbl_hinh_anh_trung_tam[".nSecOptions"] = 0;
$tdatatbl_hinh_anh_trung_tam[".recsPerRowList"] = 1;	
$tdatatbl_hinh_anh_trung_tam[".tableGroupBy"] = "0";
$tdatatbl_hinh_anh_trung_tam[".mainTableOwnerID"] = "";
$tdatatbl_hinh_anh_trung_tam[".moveNext"] = 1;




$tdatatbl_hinh_anh_trung_tam[".showAddInPopup"] = false;

$tdatatbl_hinh_anh_trung_tam[".showEditInPopup"] = false;

$tdatatbl_hinh_anh_trung_tam[".showViewInPopup"] = false;


$tdatatbl_hinh_anh_trung_tam[".fieldsForRegister"] = array();

$tdatatbl_hinh_anh_trung_tam[".listAjax"] = false;

	$tdatatbl_hinh_anh_trung_tam[".audit"] = false;

	$tdatatbl_hinh_anh_trung_tam[".locking"] = false;
	
$tdatatbl_hinh_anh_trung_tam[".listIcons"] = true;
$tdatatbl_hinh_anh_trung_tam[".edit"] = true;
$tdatatbl_hinh_anh_trung_tam[".inlineEdit"] = true;
$tdatatbl_hinh_anh_trung_tam[".view"] = true;

$tdatatbl_hinh_anh_trung_tam[".exportTo"] = true;

$tdatatbl_hinh_anh_trung_tam[".printFriendly"] = true;

$tdatatbl_hinh_anh_trung_tam[".delete"] = true;

$tdatatbl_hinh_anh_trung_tam[".showSimpleSearchOptions"] = false;

$tdatatbl_hinh_anh_trung_tam[".showSearchPanel"] = true;


$tdatatbl_hinh_anh_trung_tam[".isUseAjaxSuggest"] = true;

$tdatatbl_hinh_anh_trung_tam[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_hinh_anh_trung_tam[".addPageEvents"] = false;

$tdatatbl_hinh_anh_trung_tam[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_hinh_anh_trung_tam[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_hinh_anh_trung_tam[".isUseTimeForSearch"] = false;

$tdatatbl_hinh_anh_trung_tam[".isUseiBox"] = false;



$tdatatbl_hinh_anh_trung_tam[".isUseInlineAdd"] = true;

$tdatatbl_hinh_anh_trung_tam[".isUseInlineEdit"] = true;
$tdatatbl_hinh_anh_trung_tam[".isUseInlineJs"] = $tdatatbl_hinh_anh_trung_tam[".isUseInlineAdd"] || $tdatatbl_hinh_anh_trung_tam[".isUseInlineEdit"];

$tdatatbl_hinh_anh_trung_tam[".allSearchFields"] = array();

$tdatatbl_hinh_anh_trung_tam[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hinh_anh_trung_tam[".allSearchFields"]))
{
	$tdatatbl_hinh_anh_trung_tam[".allSearchFields"][] = "hinh_anh";	
}


$tdatatbl_hinh_anh_trung_tam[".googleLikeFields"][] = "id";
$tdatatbl_hinh_anh_trung_tam[".googleLikeFields"][] = "hinh_anh";



$tdatatbl_hinh_anh_trung_tam[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_hinh_anh_trung_tam[".allSearchFields"])) 
{
	$tdatatbl_hinh_anh_trung_tam[".allSearchFields"][] = "id";	
}
$tdatatbl_hinh_anh_trung_tam[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hinh_anh_trung_tam[".allSearchFields"])) 
{
	$tdatatbl_hinh_anh_trung_tam[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_hinh_anh_trung_tam[".advSearchFields"][] = "noi_dung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung", $tdatatbl_hinh_anh_trung_tam[".allSearchFields"])) 
{
	$tdatatbl_hinh_anh_trung_tam[".allSearchFields"][] = "noi_dung";	
}

$tdatatbl_hinh_anh_trung_tam[".isTableType"] = "list";


	

$tdatatbl_hinh_anh_trung_tam[".isDisplayLoading"] = true;

$tdatatbl_hinh_anh_trung_tam[".isResizeColumns"] = false;





$tdatatbl_hinh_anh_trung_tam[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_hinh_anh_trung_tam[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_hinh_anh_trung_tam[".orderindexes"] = array();

$tdatatbl_hinh_anh_trung_tam[".sqlHead"] = "SELECT id,  hinh_anh,  noi_dung";
$tdatatbl_hinh_anh_trung_tam[".sqlFrom"] = "FROM tbl_hinh_anh_trung_tam";
$tdatatbl_hinh_anh_trung_tam[".sqlWhereExpr"] = "";
$tdatatbl_hinh_anh_trung_tam[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_hinh_anh_trung_tam[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_hinh_anh_trung_tam[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_hinh_anh_trung_tam[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_hinh_anh_trung_tam";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_hinh_anh_trung_tam["id"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_hinh_anh_trung_tam";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hinh_anh_trung_tam["hinh_anh"]=$fdata;
//	noi_dung
	$fdata = array();
	$fdata["strName"] = "noi_dung";
	$fdata["ownerTable"] = "tbl_hinh_anh_trung_tam";
		$fdata["Label"]="Noi Dung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noi_dung";
	
		$fdata["FullName"]= "noi_dung";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hinh_anh_trung_tam["noi_dung"]=$fdata;

	
$tables_data["tbl_hinh_anh_trung_tam"]=&$tdatatbl_hinh_anh_trung_tam;
$field_labels["tbl_hinh_anh_trung_tam"] = &$fieldLabelstbl_hinh_anh_trung_tam;
$fieldToolTips["tbl_hinh_anh_trung_tam"] = &$fieldToolTipstbl_hinh_anh_trung_tam;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_hinh_anh_trung_tam"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_hinh_anh_trung_tam"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto226=array();
$proto226["m_strHead"] = "SELECT";
$proto226["m_strFieldList"] = "id,  hinh_anh,  noi_dung";
$proto226["m_strFrom"] = "FROM tbl_hinh_anh_trung_tam";
$proto226["m_strWhere"] = "";
$proto226["m_strOrderBy"] = "";
$proto226["m_strTail"] = "";
$proto227=array();
$proto227["m_sql"] = "";
$proto227["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto227["m_column"]=$obj;
$proto227["m_contained"] = array();
$proto227["m_strCase"] = "";
$proto227["m_havingmode"] = "0";
$proto227["m_inBrackets"] = "0";
$proto227["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto227);

$proto226["m_where"] = $obj;
$proto229=array();
$proto229["m_sql"] = "";
$proto229["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto229["m_column"]=$obj;
$proto229["m_contained"] = array();
$proto229["m_strCase"] = "";
$proto229["m_havingmode"] = "0";
$proto229["m_inBrackets"] = "0";
$proto229["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto229);

$proto226["m_having"] = $obj;
$proto226["m_fieldlist"] = array();
						$proto231=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_hinh_anh_trung_tam"
));

$proto231["m_expr"]=$obj;
$proto231["m_alias"] = "";
$obj = new SQLFieldListItem($proto231);

$proto226["m_fieldlist"][]=$obj;
						$proto233=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_hinh_anh_trung_tam"
));

$proto233["m_expr"]=$obj;
$proto233["m_alias"] = "";
$obj = new SQLFieldListItem($proto233);

$proto226["m_fieldlist"][]=$obj;
						$proto235=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung",
	"m_strTable" => "tbl_hinh_anh_trung_tam"
));

$proto235["m_expr"]=$obj;
$proto235["m_alias"] = "";
$obj = new SQLFieldListItem($proto235);

$proto226["m_fieldlist"][]=$obj;
$proto226["m_fromlist"] = array();
												$proto237=array();
$proto237["m_link"] = "SQLL_MAIN";
			$proto238=array();
$proto238["m_strName"] = "tbl_hinh_anh_trung_tam";
$proto238["m_columns"] = array();
$proto238["m_columns"][] = "id";
$proto238["m_columns"][] = "hinh_anh";
$proto238["m_columns"][] = "noi_dung";
$obj = new SQLTable($proto238);

$proto237["m_table"] = $obj;
$proto237["m_alias"] = "";
$proto239=array();
$proto239["m_sql"] = "";
$proto239["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto239["m_column"]=$obj;
$proto239["m_contained"] = array();
$proto239["m_strCase"] = "";
$proto239["m_havingmode"] = "0";
$proto239["m_inBrackets"] = "0";
$proto239["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto239);

$proto237["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto237);

$proto226["m_fromlist"][]=$obj;
$proto226["m_groupby"] = array();
$proto226["m_orderby"] = array();
$obj = new SQLQuery($proto226);

$queryData_tbl_hinh_anh_trung_tam = $obj;
$tdatatbl_hinh_anh_trung_tam[".sqlquery"] = $queryData_tbl_hinh_anh_trung_tam;

$tableEvents["tbl_hinh_anh_trung_tam"] = new eventsBase;

?>
